# include(cmake/glog.cmake)


find_package(OpenMP REQUIRED)
find_package(PCL REQUIRED QUIET)
find_package(OpenCV REQUIRED QUIET)
# find_package(GTSAM REQUIRED QUIET)
# find_package(yaml-cpp REQUIRED)
find_package(Ceres REQUIRED )
find_package (GeographicLib REQUIRED)  
find_package(roscpp_serialization REQUIRED)
find_package(catkin  REQUIRED COMPONENTS
  roscpp
)



# include directories
include_directories(
	include
	${catkin_INCLUDE_DIRS}
	${PCL_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS}
	# ${GTSAM_INCLUDE_DIR}
  ${CERES_INCLUDE_DIRS}

)



set(MY_LIBS
zkbs
fastrtps
fastcdr
# /usr/local/lib/libyaml-cpp.a
yaml-cpp
# gtsam
${PCL_LIBRARIES} 
${OpenCV_LIBRARIES}
# ${GTSAM_LIBRARIES}

${GeographicLib_LIBRARIES}
${ALL_TARGET_LIBRARIES}
${roscpp_LIBRARIES}
${roscpp_serialization_LIBRARIES}
)

# link directories
link_directories(
	include
	${PCL_LIBRARY_DIRS}
  ${OpenCV_LIBRARY_DIRS}
  # ${GTSAM_LIBRARY_DIRS}
  ${CERES_LIBRARY_DIRS}
  ${MY_LIBS}
  ${roscpp_LIBRARIES}
  ${roscpp_serialization_LIBRARIES}
  

)